﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NguoiDungList.ascx.cs"
    Inherits="NguoiDungList" %>
<asp:GridView ID="grvUser" runat="server" AutoGenerateColumns="False" AllowPaging="True"
    AllowSorting="True" OnPageIndexChanging="grvUser_PageIndexChanging" PageSize="20"
    Font-Size="Small" OnSorting="grvUser_Sorting" CssClass="adminlist" OnRowDataBound="grvUser_RowDataBound">
    <Columns>
        <asp:TemplateField ItemStyle-Width="20px">
            <HeaderTemplate>
                <input id="chkAll" onclick="javascript:SelectAllCheckboxes(this);" type="checkbox" />
            </HeaderTemplate>
            <ItemTemplate>
                <input runat="server" id="chkSelect" value='<%# "?tabid=13&mod=" + WebComponents.ConvertType.Encode(this.AddModule) + "&id=" + Eval("UserID") %>'
                    title='<%# Eval("UserID") %>' type="checkbox" />
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" Width="20px" />
            <HeaderStyle Width="20px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Tên người dùng" SortExpression="UserName" HeaderStyle-HorizontalAlign="left">
            <ItemTemplate>
                <a href='?tabid=13&mod=<%=WebComponents.ConvertType.Encode(this.AddModule) %>&id=<%# Eval("UserID")  %>'>
                    <asp:Label ID="lblUserName" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                </a>
            </ItemTemplate>
            <HeaderStyle Width="200px" />
            <ItemStyle HorizontalAlign="Left" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Email" SortExpression="Email" HeaderStyle-HorizontalAlign="left">
            <ItemTemplate>
                <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("Email") %>'></asp:Label>
            </ItemTemplate>
            <HeaderStyle Width="200px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Ng&#224;y tạo" SortExpression="CreateDate" HeaderStyle-HorizontalAlign="left">
            <ItemTemplate>
                <asp:Label ID="lblAddedDate" runat="server" Text='<%# ((DateTime)Eval("CreateDate")).ToString("dd/MM/yyyy h:m") %>'></asp:Label>
            </ItemTemplate>
            <HeaderStyle Width="70px" />
            <ItemStyle HorizontalAlign="left" />
        </asp:TemplateField>
    </Columns>
    <EmptyDataTemplate>
        <div align="center" id="EmptyData">
            Không có thông tin...</div>
    </EmptyDataTemplate>
     <RowStyle CssClass="row0" />
    <AlternatingRowStyle CssClass="row1" />
</asp:GridView>
